﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;
using TyMES.Model;

namespace TyMES.ViewModel.Record.ProduceDataRecordVMs
{
    public partial class ProduceDataRecordTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._ProduceDataRecord._SN")]
        public ExcelPropety SN_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.SN);
        [Display(Name = "_Model._ProduceDataRecord._StationCode")]
        public ExcelPropety StationCode_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.StationCode);
        [Display(Name = "_Model._ProduceDataRecord._DataName")]
        public ExcelPropety DataName_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.DataName);
        [Display(Name = "_Model._ProduceDataRecord._Result")]
        public ExcelPropety Result_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.Result);
        [Display(Name = "_Model._ProduceDataRecord._Data")]
        public ExcelPropety Data_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.Data);
        [Display(Name = "_Model._ProduceDataRecord._SqlTime")]
        public ExcelPropety SqlTime_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.SqlTime);
        [Display(Name = "_Model._ProduceDataRecord._SqlFlag")]
        public ExcelPropety SqlFlag_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.SqlFlag);
        [Display(Name = "_Model._ProduceDataRecord._Actualsort")]
        public ExcelPropety Actualsort_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.Actualsort);
        [Display(Name = "_Model._ProduceDataRecord._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.CreateTime, true);
        [Display(Name = "_Model._ProduceDataRecord._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.UpdateTime, true);
        [Display(Name = "_Model._ProduceDataRecord._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.CreateBy);
        [Display(Name = "_Model._ProduceDataRecord._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<ProduceDataRecord>(x => x.UpdateBy);

	    protected override void InitVM()
        {
            
        }

    }

    public class ProduceDataRecordImportVM : BaseImportVM<ProduceDataRecordTemplateVM, ProduceDataRecord>
    {
            //import

    }

}